/*!
 * SPDX-License-Identifier: Apache-2.0
 *
 * The OpenSearch Contributors require contributions made to
 * this file be licensed under the Apache-2.0 license or a
 * compatible open source license.
 *
 * Modifications Copyright OpenSearch Contributors. See
 * GitHub history for details.
 */

@import 'global_styling/functions/index';

// These colors stay the same no matter the theme
$ouiColorGhost: #E3E5E9;
$ouiColorInk: #02020E;

// Core
$ouiColorPrimary: #0097D1;
$ouiColorSecondary: #129079;
$ouiColorAccent: #AA63C4;

// Status
$ouiColorSuccess: $ouiColorSecondary;
$ouiColorWarning: #F4AE27;
$ouiColorDanger: #CD5D56;

// Grays
$ouiColorEmptyShade: #0F171F;
$ouiColorLightestShade: #19222B;
$ouiColorLightShade: #2A3540;
$ouiColorMediumShade: #5C666F;
$ouiColorDarkShade: #959BA2;
$ouiColorDarkestShade: #E3E5E9;
$ouiColorFullShade: #FCFEFF;

// Backgrounds
$ouiPageBackgroundColor: #02020E;
$ouiColorHighlight: #3D2C0D;

// CodeBlock
$ouiCodeBlockCommentShade: #838B93;
$ouiCodeBlockStringShade: #D0809B;
$ouiCodeBlockNameShade: #6AB0F1;
$ouiCodeBlockNumberShade: #10B688;
$ouiCodeBlockKeywordShade: #B174FC;
$ouiCodeBlockTypeShade: #6AB0F1;
$ouiCodeBlockTitleShade: #DD8232;

// Variations from core
$ouiTextColor: $ouiColorDarkShade;
$ouiTitleColor: #C6C9CE;
// Ensure contrast between subdued text and the page background
// Should not be shaded as much as $ouiColorDisabled
$ouiTextSubduedColor: #798189;
$ouiColorDisabled: $ouiColorLightestShade !default;

// Contrasty text variants
$ouiColorPrimaryText: makeHighContrastColor($ouiColorPrimary) !default;
$ouiColorSecondaryText: makeHighContrastColor($ouiColorSecondary) !default;
$ouiColorAccentText: makeHighContrastColor($ouiColorAccent) !default;
$ouiColorWarningText: makeHighContrastColor($ouiColorWarning) !default;
$ouiColorDangerText: makeHighContrastColor($ouiColorDanger) !default;
$ouiColorDisabledText: #798189 !default;
$ouiColorSuccessText: $ouiColorSecondaryText !default;
$ouiLinkColor: $ouiColorPrimaryText !default;

// Charts
$ouiColorChartLines: $ouiColorLightShade;
$ouiColorChartBand: tint($ouiColorLightestShade, 2.5%);

// Code
$ouiCodeBlockBackgroundColor: $ouiColorLightestShade;

// Shadows
$ouiShadowColor: #000;
$ouiShadowColorLarge: $ouiShadowColor;

//CodeBlock Colors
$ouiCodeBlockCommentColor: $ouiCodeBlockCommentShade;
$ouiCodeBlockStringColor: $ouiCodeBlockStringShade;
$ouiCodeBlockNameColor: $ouiCodeBlockNameShade;
$ouiCodeBlockNumberColor: $ouiCodeBlockNumberShade;
$ouiCodeBlockKeywordColor: $ouiCodeBlockKeywordShade;
$ouiCodeBlockTypeColor: $ouiCodeBlockTypeShade;
$ouiCodeBlockTitleColor: $ouiCodeBlockTitleShade;

/* OUI -> EUI Aliases */
$euiCodeBlockCommentColor: $ouiCodeBlockCommentColor;
$euiCodeBlockStringColor: $ouiCodeBlockStringColor;
$euiCodeBlockNameColor: $ouiCodeBlockNameColor;
$euiCodeBlockNumberColor: $ouiCodeBlockNumberColor;
$euiCodeBlockKeywordColor: $ouiCodeBlockKeywordColor;
$euiCodeBlockTypeColor: $ouiCodeBlockTypeColor;
$euiCodeBlockTitleColor: $ouiCodeBlockTitleColor;
$euiColorGhost: $ouiColorGhost;
$euiColorInk: $ouiColorInk;
$euiColorPrimary: $ouiColorPrimary;
$euiColorSecondary: $ouiColorSecondary;
$euiColorAccent: $ouiColorAccent;
$euiColorSuccess: $ouiColorSuccess;
$euiColorWarning: $ouiColorWarning;
$euiColorDanger: $ouiColorDanger;
$euiColorEmptyShade: $ouiColorEmptyShade;
$euiColorLightestShade: $ouiColorLightestShade;
$euiColorLightShade: $ouiColorLightShade;
$euiColorMediumShade: $ouiColorMediumShade;
$euiColorDarkShade: $ouiColorDarkShade;
$euiColorDarkestShade: $ouiColorDarkestShade;
$euiColorFullShade: $ouiColorFullShade;
$euiPageBackgroundColor: $ouiPageBackgroundColor;
$euiColorHighlight: $ouiColorHighlight;
$euiTextColor: $ouiTextColor;
$euiTitleColor: $ouiTitleColor;
$euiTextSubduedColor: $ouiTextSubduedColor;
$euiColorDisabled: $ouiColorDisabled;
$euiColorPrimaryText: $ouiColorPrimaryText;
$euiColorSecondaryText: $ouiColorSecondaryText;
$euiColorAccentText: $ouiColorAccentText;
$euiColorWarningText: $ouiColorWarningText;
$euiColorDangerText: $ouiColorDangerText;
$euiColorDisabledText: $ouiColorDisabledText;
$euiColorSuccessText: $ouiColorSuccessText;
$euiLinkColor: $ouiLinkColor;
$euiColorChartLines: $ouiColorChartLines;
$euiColorChartBand: $ouiColorChartBand;
$euiCodeBlockBackgroundColor: $ouiCodeBlockBackgroundColor;
$euiShadowColor: $ouiShadowColor;
$euiShadowColorLarge: $ouiShadowColorLarge;
/* End of Aliases */
